package com.ysqcould.Community.domain;


import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import com.ysqcould.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 义工区域对象 t_vol_area
 * 
 * @author ruoyi
 * @date 2022-06-30
 */
public class VolArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 区域 */
    @Excel(name = "区域")
    private String name;

    /** 父级ID */
    @Excel(name = "父级ID")
    private Long pid;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortRank;

    /** 层级 */
    @Excel(name = "层级")
    private Long level;

    /** 协会ID */
    @Excel(name = "协会ID")
    private Long asId;

    /** 状态（1 开启 0关闭） */
    @Excel(name = "状态", readConverterExp = "1=,开=启,0=关闭")
    private String enable;

    /** 区域 */
    @Excel(name = "区域")
    private String categoryKey;

    /** 类型id */
    @Excel(name = "类型id")
    private Long typeId;

    /** 子区域 */
    private List<VolArea> children = new ArrayList<VolArea>();
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setSortRank(Long sortRank) 
    {
        this.sortRank = sortRank;
    }

    public Long getSortRank() 
    {
        return sortRank;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }
    public void setCategoryKey(String categoryKey) 
    {
        this.categoryKey = categoryKey;
    }

    public String getCategoryKey() 
    {
        return categoryKey;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public List<VolArea> getChildren()
    {
        return children;
    }

    public void setChildren(List<VolArea> children)
    {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("pid", getPid())
            .append("sortRank", getSortRank())
            .append("level", getLevel())
            .append("asId", getAsId())
            .append("enable", getEnable())
            .append("categoryKey", getCategoryKey())
            .append("typeId", getTypeId())
            .toString();
    }
}
